package mxmf.ctrl.model.content;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import mxmf.entity.content.Content;

public class ContentDto implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private List<PictureVO> pictures;

    private List<Long> packageIds;

    private List<Long> categoryIds = new ArrayList<Long>();

    private boolean dispatch;

    private Integer priority;

    private Map<String, Content> map = new HashMap<>();

    private List<String> attr2Episode = new ArrayList<>();// 同步哪些字段到episode
    private List<String> advanceAttr2Episode = new ArrayList<>();// 同步图片或者资费包到episode

    private Long seriesId;
    private Integer episodeIndex;

    private boolean sendAudit;// 是否送审 预处理编目 可以只保存 不送审

    public void init() {
    }

    public Content getContent(String contentType) {
        init();
        return map.get(contentType);
    }

    /**
     * @return the pictures
     */
    public List<PictureVO> getPictures() {
        return pictures;
    }

    /**
     * @param pictures the pictures to set
     */
    public void setPictures(List<PictureVO> pictures) {
        this.pictures = pictures;
    }

    /**
     * @return the dispatch
     */
    public boolean isDispatch() {
        return dispatch;
    }

    /**
     * @param dispatch the dispatch to set
     */
    public void setDispatch(boolean dispatch) {
        this.dispatch = dispatch;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public List<Long> getPackageIds() {
        return packageIds;
    }

    public void setPackageIds(List<Long> packageIds) {
        this.packageIds = packageIds;
    }

    public List<Long> getCategoryIds() {
        return categoryIds;
    }

    public void setCategoryIds(List<Long> categoryIds) {
        this.categoryIds = categoryIds;
    }

    public List<String> getAttr2Episode() {
        return attr2Episode;
    }

    public void setAttr2Episode(List<String> attr2Episode) {
        this.attr2Episode = attr2Episode;
    }

    public List<String> getAdvanceAttr2Episode() {
        return advanceAttr2Episode;
    }

    public void setAdvanceAttr2Episode(List<String> advanceAttr2Episode) {
        this.advanceAttr2Episode = advanceAttr2Episode;
    }

    public Long getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Long seriesId) {
        this.seriesId = seriesId;
    }

    public Integer getEpisodeIndex() {
        return episodeIndex;
    }

    public void setEpisodeIndex(Integer episodeIndex) {
        this.episodeIndex = episodeIndex;
    }

    public boolean isSendAudit() {
        return sendAudit;
    }

    public void setSendAudit(boolean sendAudit) {
        this.sendAudit = sendAudit;
    }

}
